package com.newland.boss1.zxy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zhangxuyuan
 * @Project: springcloudprometheus
 * @Package com.newland.boss1.zxy.controller
 * @date Date : 2021年03月11日 10:00
 */
@RestController
public class IndexController {

    @GetMapping("/sayhello/{name}")
    public String sayHello(@PathVariable("name")String name) throws InterruptedException {
        Thread.sleep(1000);
        return "hello "+name;
    }
}
